<template>
  <el-container class="setting_hardware-setting_pos-machine-setting">
    <el-main>
      <div class="pos-machine-setting-list">
        <div class="pos-machine-setting-img-item">
          <div class="item-img r-2x fl">
            <img src="../../assets/cop/sideToolbar.png" alt="">
          </div>
        </div>
        <div class="pos-machine-setting-item">
          <ul class="infos mb10">
            <li>
              <P class="a-row" style="vertical-align: top;"><span><b>什么是聊天窗侧边栏</b></span></P>
            </li>
            <li>
              <ul class="infos mb8">
                <li>
                  <P class="a-row"><span>员工和外部联系人聊天时，在聊天窗右侧打开的功能应用页面。可以将企业的功能配置到侧边栏，方便员工获取和操作客户信息 </span></P>
                </li>
              </ul>
            </li>
          </ul>
        </div>
      </div>
      <el-card shadow="never" class="tableCard">
        <div class="fin-setting-content">
          <el-card shadow="never" class="cardInfo">
            <div class="bg-white-panel">聊天侧边栏应用地址</div>
            <div class="nav-item">
              <el-row :gutter="10">
                <el-col span="24">
                  <div class="item-header">
                    <div class="dis">
                      <span class="form-item-title">客户画像：</span>
                      <div style="border: 1px solid #9eb5b5; width:80%;height: 80px;">
                        <div style="display: flex;margin-left: 20px;width:100%; margin-top: 5px;">
                          <div style="justify-items: left;width:80%;">
                            <span style="padding-bottom: 5px;">侧边栏名称：小红包</span>
                          </div>
                          <div style="justify-content: right;float: right;">
                            <vxe-button class="tool-btn" style="color: cornflowerblue;" type="text" size="small" icon="el-icon-document-copy">复制名称</vxe-button>
                          </div>
                        </div>
                        <div style="display: flex;margin-left: 20px;width:100%;">
                          <span>应用路径：</span>
                          <div style="width:60%">
                            <el-input v-model="params.friendsAvatarUrl" size="mini" :disabled="true" />
                          </div>
                          <div style="float: right;justify-content:right;margin-left: 120px;;">
                            <vxe-button class="tool-btn" style="color: cornflowerblue;" type="text" size="small" icon="el-icon-document-copy">复制路径</vxe-button>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </el-col>
                <el-col :span="24">
                  <div class="item-header">
                    <div class="dis">
                      <span class="form-item-title">客户订单：</span>
                      <div style="border: 1px solid #9eb5b5; width:80%;height: 80px;">
                        <div style="display: flex;margin-left: 20px;width:100%; margin-top: 5px;">
                          <div style="justify-items: left;width:80%;">
                            <span style="padding-bottom: 5px;">侧边栏名称：小红包</span>
                          </div>
                          <div style="justify-content: right;float: right;">
                            <vxe-button class="tool-btn" style="color: cornflowerblue;" type="text" size="small" icon="el-icon-document-copy">复制名称</vxe-button>
                          </div>
                        </div>
                        <div style="display: flex;margin-left: 20px;width:100%;">
                          <span>应用路径：</span>
                          <div style="width:60%">
                            <el-input v-model="params.friendsOrderUrl" size="mini" :disabled="true" />
                          </div>
                          <div style="float: right;justify-content:right;margin-left: 120px;;">
                            <vxe-button class="tool-btn" style="color: cornflowerblue;" type="text" size="small" icon="el-icon-document-copy">复制路径</vxe-button>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </el-col>
                <el-col :span="24">
                  <div class="item-header">
                    <div class="dis">
                      <span class="form-item-title">优惠券：</span>
                      <div style="border: 1px solid #9eb5b5; width:80%;height: 80px;">
                        <div style="display: flex;margin-left: 20px;width:100%; margin-top: 5px;">
                          <div style="justify-items: left;width:80%;">
                            <span style="padding-bottom: 5px;">侧边栏名称：小红包</span>
                          </div>
                          <div style="justify-content: right;float: right;">
                            <vxe-button class="tool-btn" style="color: cornflowerblue;" type="text" size="small" icon="el-icon-document-copy">复制名称</vxe-button>
                          </div>
                        </div>
                        <div style="display: flex;margin-left: 20px;width:100%;">
                          <span>应用路径：</span>
                          <div style="width:60%">
                            <el-input v-model="params.couponUrl" size="mini" :disabled="true" />
                          </div>
                          <div style="float: right;justify-content:right;margin-left: 120px;;">
                            <vxe-button class="tool-btn" style="color: cornflowerblue;" type="text" size="small" icon="el-icon-document-copy">复制路径</vxe-button>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </el-col>
                <el-col :span="24">
                  <div class="item-header">
                    <div class="dis">
                      <span class="form-item-title">商品列表：</span>
                      <div style="border: 1px solid #9eb5b5; width:80%;height: 80px;">
                        <div style="display: flex;margin-left: 20px;width:100%; margin-top: 5px;">
                          <div style="justify-items: left;width:80%;">
                            <span style="padding-bottom: 5px;">侧边栏名称：小红包</span>
                          </div>
                          <div style="justify-content: right;float: right;">
                            <vxe-button class="tool-btn" style="color: cornflowerblue;" type="text" size="small" icon="el-icon-document-copy">复制名称</vxe-button>
                          </div>
                        </div>
                        <div style="display: flex;margin-left: 20px;width:100%;">
                          <span>应用路径：</span>
                          <div style="width:60%">
                            <el-input v-model="params.goodsListUrl" size="mini" :disabled="true" />
                          </div>
                          <div style="float: right;justify-content:right;margin-left: 120px;;">
                            <vxe-button class="tool-btn" style="color: cornflowerblue;" type="text" size="small" icon="el-icon-document-copy">复制路径</vxe-button>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </el-col>
                <el-col :span="24">
                  <div class="item-header">
                    <div class="dis">
                      <span class="form-item-title">营销活动：</span>
                      <div style="border: 1px solid #9eb5b5; width:80%;height: 80px;">
                        <div style="display: flex;margin-left: 20px;width:100%; margin-top: 5px;">
                          <div style="justify-items: left;width:80%;">
                            <span style="padding-bottom: 5px;">侧边栏名称：小红包</span>
                          </div>
                          <div style="justify-content: right;float: right;">
                            <vxe-button class="tool-btn" style="color: cornflowerblue;" type="text" size="small" icon="el-icon-document-copy">复制名称</vxe-button>
                          </div>
                        </div>
                        <div style="display: flex;margin-left: 20px;width:100%;">
                          <span>应用路径：</span>
                          <div style="width:60%">
                            <el-input v-model="params.campaignListUrl" size="mini" :disabled="true" />
                          </div>
                          <div style="float: right;justify-content:right;margin-left: 120px;;">
                            <vxe-button class="tool-btn" style="color: cornflowerblue;" type="text" size="small" icon="el-icon-document-copy">复制路径</vxe-button>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </el-col>
                <el-col :span="24">
                  <div class="item-header">
                    <div class="dis">
                      <span class="form-item-title">推广码：</span>
                      <div style="border: 1px solid #9eb5b5; width:80%;height: 80px;">
                        <div style="display: flex;margin-left: 20px;width:100%; margin-top: 5px;">
                          <div style="justify-items: left;width:80%;">
                            <span style="padding-bottom: 5px;">侧边栏名称：小红包</span>
                          </div>
                          <div style="justify-content: right;float: right;">
                            <vxe-button class="tool-btn" style="color: cornflowerblue;" type="text" size="small" icon="el-icon-document-copy">复制名称</vxe-button>
                          </div>
                        </div>
                        <div style="display: flex;margin-left: 20px;width:100%;">
                          <span>应用路径：</span>
                          <div style="width:60%">
                            <el-input v-model="params.promotionQrcodeUrl" size="mini" :disabled="true" />
                          </div>
                          <div style="float: right;justify-content:right;margin-left: 120px;;">
                            <vxe-button class="tool-btn" style="color: cornflowerblue;" type="text" size="small" icon="el-icon-document-copy">复制路径</vxe-button>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </el-col>
              </el-row>
            </div>
          </el-card>
        </div>

      </el-card>
    </el-main>
  </el-container>
</template>
<script>

export default {
  components: {

  },
  data() {
    return {
      params: {
        friendsAvatarUrl: 'https://h5.ibeekig.com/#/pages/friendsAvatar',
        friendsOrderUrl: 'https://h5.ibeekig.com/#/pages/friendsOrder',
        couponUrl: 'https://h5.ibeekig.com/#/pages/coupon',
        goodsListUrl: 'https://h5.ibeekig.com/#/pages/goodsList',
        campaignListUrl: 'https://h5.ibeekig.com/#/pages/campaignList',
        promotionQrcodeUrl: 'https://h5.ibeekig.com/#/pages/promotionQrcode'
      }
    }
  },
  mounted() {
  },
  methods: {

  }
}
</script>

<style lang="scss">
.setting_hardware-setting_pos-machine-setting {
  .pos-machine-setting-list {
    display: flex;
    align-items: left;
    width: calc(100%);
    height: 120px;
    overflow-x: hidden;
    margin-bottom: 1px;
    border: 1px solid #dddce2;
    .pos-machine-setting-img-item{
      margin-left: 20px;
      width: 100px;
      .item-img{
        border-radius: 4px;
        margin-top: 4px;
        img {
          width: 100px;
          height: 50px;
        }
      }
    }
    .pos-machine-setting-item {
      font-size: 16px;
      line-height: 20px;
      color: #3a3a3e;
      margin: 5px 1px 0;
      text-align: left;
      vertical-align: top;
      word-break: break-all;
      .infos {
        display:inline-block;
        text-align: left;
        line-height: 20px;
        margin-left: 40px;
        margin-top: 10px;
        justify-content: space-between;
        li {
          width: 100%;
          text-align: left;
          font-weight: 400;
          p {
            margin: 0;
            font-size: 16px;
            line-height: 20px;
            span {
              display: inline-block;
              width: 30%;
            }
          }
        }
      }
    }
    > div {
      margin-right: 5px;
      background: #ffffff;
      display: flex;
      flex-direction: column;
      padding: 5px 0 5px;
      width: 100%;
      justify-content: left;
      align-items: left;
      height: 100px;
      .item-name {
        font-size: 18px;
        margin-bottom: 3px;
      }
      .example {
        font-size: 12px;
        margin-bottom: 3px;
      }
      .desc {
        font-size: 12px;
        margin-bottom: 4px;
      }
    }
  }
  .fin-setting-content {
      width: 100%;
      height: calc(100%-50px);
      margin: 0px 0 4px 4px;
      overflow-x: hidden;
      border-radius:5px;
      .cardInfo {
          margin-top: 2px;
          padding: 2px;
          height: calc(100%-50px);
       }
      .user-center-item {
        box-sizing: border-box;
        cursor: pointer;
        padding-bottom: 10px;
        &.active {
          border: 1px solid #1890ff
        }
      }

    }
    .nav-item {
      font-size: 14px;
      background: #ffffff;
      border: 0px solid #e3e2e5;
      border-radius: 4px;
      margin-left: 60px;
      margin-bottom: 10px;
      width: 100%;
      display: block;

      .form-item-title{
        float: right;
        width: 80px;
        color: #666;
      }
      .item-header {

        border-radius: 4px 4px 0 0;
        margin-top: 10px;
        line-height: 30px;
        padding: 0 5px 0 3px;
      }

      .item-content {
        padding: 3px 0;
      }
    }

    .base-info {
      display: flex;
      .basics-info {
        margin: 0 auto;
      }
    }

    .el-col {
      margin-bottom: 0px;
    }
    .noMargin {
      margin-bottom: 0 !important;
    }
  .bg-white-panel {
    padding: 5px;
    font-size: 14px;
    font-weight: bolder;
    border-radius: 4px;
    margin-bottom: 5px;
  }

}
</style>
